package com.linxiao.hrcrm.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 客户项目关联对象 crm_customer_project
 *
 * @author zhoudong
 * @date 2024-01-03
 */
public class CrmCustomerProject extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 商户ID
     */
    @Excel(name = "商户ID")
    private Long mchId;

    /**
     * 客户ID
     */
    @Excel(name = "客户ID")
    private Long customerId;

    /**
     * 所属项目
     */
    @Excel(name = "所属项目")
    private Long projectId;

    /**
     * 所属工地
     */
    @Excel(name = "所属工地")
    private Long worksiteId;

    /**
     * 所属负责人ID
     */
    @Excel(name = "所属负责人ID")
    private Long employeeId;

    /**
     * 客户名称，不写数据库，仅做展示使用
     */
    @Excel(name = "客户名称")
    private String customerName;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setMchId(Long mchId) {
        this.mchId = mchId;
    }

    public Long getMchId() {
        return mchId;
    }

    public void setCustomerId(Long customerId) {
        this.customerId = customerId;
    }

    public Long getCustomerId() {
        return customerId;
    }

    public void setProjectId(Long projectId) {
        this.projectId = projectId;
    }

    public Long getProjectId() {
        return projectId;
    }

    public void setWorksiteId(Long worksiteId) {
        this.worksiteId = worksiteId;
    }

    public Long getWorksiteId() {
        return worksiteId;
    }

    public void setEmployeeId(Long employeeId) {
        this.employeeId = employeeId;
    }

    public Long getEmployeeId() {
        return employeeId;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("mchId", getMchId())
                .append("customerId", getCustomerId())
                .append("projectId", getProjectId())
                .append("worksiteId", getWorksiteId())
                .append("employeeId", getEmployeeId())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
